<?php

namespace App\Models\Content;

use App\Traits\ModelTrait;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Files extends Model
{
    use SoftDeletes, ModelTrait;
    protected $table = 'files';
    protected $fillable = [
        'user_id', 'group_id', 'file_name', 'path', 'suffix', 'type', 'storage', 'size'
    ];

    public function group()
    {
        return $this->belongsTo(FilesGroup::class);
    }
}
